package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ZxMessageMapper;
import com.zch.dao.model.ZxMessage;
import com.zch.dao.model.ZxMessageExample;
import com.zch.daoEx.ZxMessageMapperEx;
import com.zch.daoEx.model.IndexNews;
import com.zch.daoEx.model.ZaitiEx;
import com.zch.daoEx.model.ZxMessageEx;

@Service
public class ZxMessageService {
	@Autowired
	private ZxMessageMapper zxMessageMapper;
	
	@Autowired
    private ZxMessageMapperEx zxMessageMapperEx;
	

	public int countByExample(ZxMessageExample example) {
		return this.zxMessageMapper.countByExample(example);
	}

	public ZxMessage selectByPrimaryKey(String id) {
		return this.zxMessageMapper.selectByPrimaryKey(id);
	}

	public List<ZxMessage> selectByExample(ZxMessageExample example) {
		return this.zxMessageMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.zxMessageMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(ZxMessage record) {
		return this.zxMessageMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(ZxMessage record) {
		return this.zxMessageMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ZxMessageExample example) {
		return this.zxMessageMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(ZxMessage record, ZxMessageExample example) {
		return this.zxMessageMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(ZxMessage record, ZxMessageExample example) {
		return this.zxMessageMapper.updateByExample(record, example);
	}

	public int insert(ZxMessage record) {
		return this.zxMessageMapper.insert(record);
	}

	public int insertSelective(ZxMessage record) {
		return this.zxMessageMapper.insertSelective(record);
	}

    public List<ZxMessageEx> selectAppList(Map<String, Object> map) {
        return zxMessageMapperEx.selectAppList(map);
    }

    public ZxMessageEx selectAppDetailList(Map<String, Object> map) {
        return zxMessageMapperEx.selectAppDetailList(map);
    }

    public List<ZxMessageEx> selectList(Map<String, Object> map) {
        return zxMessageMapperEx.selectList(map);
    }
    
    public List<IndexNews> selectIndexNews(){
    	return zxMessageMapperEx.selectIndexNews();
    }

    public List<ZxMessageEx> selectMyList(Map<String, Object> map) {
        return zxMessageMapperEx.selectMyList(map);
    }

    public int cancleTops(Map<String, Object> map) {
        return zxMessageMapperEx.cancleTops(map);
        
    }
}
